package edu.zut.bailan.cart.domain;

import edu.zut.bailan.base.domain.BaseEntity;

import javax.persistence.*;

public class CartRemark extends BaseEntity<Long>{

    /**
     *
     */
    private static final long serialVersionUID = -7949864099334537861L;

    /**
     * content of cartremarks
     */
    @Column
    String content;

    /**
     * code of cartremarks
     */
    @Column
    String code;

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "CART_REMARK_ID")
    Cart cart;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Cart getCart() {
        return cart;
    }

    public void setCart(Cart cart) {
        this.cart = cart;
    }
}
